package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.dto.FloorDTO;
import com.yuanfeng.base.entity.BaseFloorAdpageEntity;
import com.yuanfeng.base.vo.GoodsIdsQueryListVO;
import com.yuanfeng.commoms.vo.goods.GoodsIdsVO;
import com.yuanfeng.commoms.vo.goodscat.WebCatMenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.yuanfeng.base.entity.BaseFloorAdpage
 */
@Mapper
public interface BaseFloorAdpageMapper extends BaseMapper<BaseFloorAdpageEntity> {

    /**
     * 查询商品
     *
     * @param goodIds
     * @return
     */
    List<GoodsIdsQueryListVO> selectByGoodIds2(@Param("goodIds") List<Integer> goodIds);


    /**
     * 查询全部下级分类
     *
     * @return
     */
    List<WebCatMenuVO> selectAllCat2();

    /**
     * 新建选择WebFloor移动配置
     *
     * @param goodsId
     * @return
     */
    GoodsIdsVO newSelectWebFloorMobConfig(@Param("goodsId") Integer goodsId);

    /**
     * 更新楼层广告页
     *
     * @param updateFloorAdpage
     */
    void updateFloorAdpage(@Param("param") List<FloorDTO> updateFloorAdpage);

    /**
     * 添加楼层广告页
     *
     * @param addFloorAdpage
     */
    void insertFloorAdpage(@Param("param") List<FloorDTO> addFloorAdpage);

    /**
     * 修改
     *
     * @param floorAdpageId
     * @param floorStatus
     */
    void pcIndexFloorUpdate(@Param("floorAdpageId") Integer floorAdpageId, @Param("floorStatus") Integer floorStatus);

    /**
     * 修改配置
     *
     * @param pageType
     * @param pageStart
     */
    void pcIndexConfigUpdate(@Param("pageType") Integer pageType, @Param("pageStart") Integer pageStart);
}




